package com.example.high_slope_electronic_sand_table.slopeDisplacement.dto;

import com.example.high_slope_electronic_sand_table.common.config.CustomFloatSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 边坡位移监测-支护结构变形监测：应变、支护结构表面位移
 */
@Data
@Schema(description = "支护结构变形监测")
public class StructureDeformationMonitorDTO {
    @Schema(description = "设备ID")
    private String deviceId; // 设备ID
    @Schema(description = "支护结构变形监测-应变")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float structureDeformationStrain; // 支护结构变形监测-应变
    @Schema(description = "支护结构变形监测-应变告警等级")
    private Integer structureDeformationStrainWarningLevel; // 支护结构变形监测-应变告警等级
    @Schema(description = "支护结构变形监测-支护结构表面位移")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float structureSurfaceDisplacement; // 支护结构变形监测-支护结构表面位移
    @Schema(description = "支护结构变形监测-支护结构表面位移告警等级")
    private Integer structureSurfaceDisplacementWarningLevel; // 支护结构变形监测-支护结构表面位移告警等级
    @Schema(description = "上报时间")
    private String datetime;// 上报时间
}
